import { createRoot } from "react-dom/client";
import Routers from "./router";
import "@/common/styles/frame.less";
import { ConfigProvider } from "antd";
import "@ant-design/v5-patch-for-react-19";
import zhCN from "antd/locale/zh_CN";
import "@/common/styles/frame.less";
import { store } from "./store";
import { Provider } from "react-redux";
import "./mock";
import { detectOS } from "@/common/js/commonLib";

document.body.setAttribute("os", detectOS());

// createRoot(document.getElementById("root")).render(<App />);
createRoot(document.getElementById("root")).render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      <Routers />
    </ConfigProvider>
  </Provider>
);
